/*******************************************************************************
 * Copyright (c) 2008 L.Carbonnaux.
 *******************************************************************************/
package org.lcx.taskvision.core.model;

import java.net.URL;

import com.google.gdata.data.spreadsheet.WorksheetEntry;

/**
 * @author Laurent Carbonnaux
 */
public class TaskVisionWorkSheet {
	private String id;
	private String name;
	private URL listFeedUrl;
	private URL cellFeedUrl;

	public TaskVisionWorkSheet() {
		// nothing to do
	}
	
	public TaskVisionWorkSheet(WorksheetEntry worksheet) {
		if(worksheet!=null){
			this.id = worksheet.getId();
			this.name = worksheet.getTitle().getPlainText();
			this.listFeedUrl = worksheet.getListFeedUrl();
			this.cellFeedUrl = worksheet.getCellFeedUrl();
		}
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public URL getListFeedUrl() {
		return listFeedUrl;
	}

	public URL getCellFeedUrl() {
		return cellFeedUrl;
	}

	public void setCellFeedUrl(URL cellFeedUrl) {
		this.cellFeedUrl = cellFeedUrl;
	}

	public void setListFeedUrl(URL listFeedUrl) {
		this.listFeedUrl = listFeedUrl;
	}

}
